Cannot implicitly convert type to T

80

Cannot implicitly convert type to 'T' -

public T Get<T>(Stats type) where T : IConvertible
{
    return (T) Convert.ChangeType(PlayerStats[type], typeof(T));
}

Comments

Submit
0 Comments